package com.neusoft.feign;

import com.neusoft.po.Business;
import com.neusoft.po.CommonResult;
import com.neusoft.po.Food;
import org.springframework.stereotype.Component;

@Component
public class FeignClientCallBack implements FoodFeignClient,BusinessFeignClient{
    @Override
    public CommonResult<Food> getFoodById(Integer businessId,Integer foodId) {
        return new CommonResult<>(403,"fegin触发了熔断降级",null);
    }

    @Override
    public CommonResult<Business> getBusinessById(Integer businessId) {
        return new CommonResult<>(403,"feign触发了熔断降级",null);
    }
}
